﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace DataLayer.SQLEntities
{
    public class ConnectionInfo
    {
        public string Server { get; set; }
        public string Catalog { get; set; }
        public string UserId { get; set; }
        public string Password { get; set; }
        public bool TrustedConnection { get; set; }
        
        public string GetConnectionString() {
            return ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
        }

        public string GetProviderName() {
            return ConfigurationManager.ConnectionStrings["ConnectionString"].ProviderName;
        }
    }
}
